<?php

namespace ticky;

/**
 * 异常基类
 */
class exception extends \Exception {

    protected $sql;

    public function __construct($message, $sql, $code) {

        parent::__construct($message, $code);

        $this->sql = $sql;
    }

    public function getSQL() {

        return $this->sql;
    }

}
